//
//  FileTableViewController.h
//  OfficeEtc
//
//  Created by  on 12-7-4.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "WifiViewController.h"
typedef enum {
    ItemOperNoneMode =0x200,
    ItemOperMoveMode,
    ItemOperCopyMode,
}ItemOperMode;

@class FileItemOperation;
@class ZipArchive;
@interface FileTableViewController : UIViewController<UITableViewDelegate,
UITableViewDataSource,UIScrollViewDelegate,UISearchBarDelegate,WifiAddFileProtocol,UIAlertViewDelegate>{
    UISearchBar         *p_DocSearchBar;
    UIButton            *p_RegistBtt;
    BOOL                 p_NeedDoAnimate;
    NSString     *m_CurrentPath;  
    FileItemOperation   *p_FItemOper;
    ZipArchive          *p_ZipArchive;
    NSString            *p_UnZipPath;
    NSMutableArray      *p_BackUpFilesArray;
    
    UITableView         *m_ListTableView;
    NSMutableArray      *m_EditItems;
    NSMutableArray      *m_CurrentFilesArray;
    
    NSDictionary        *m_FileImgDic;
    NSMutableArray      *m_SuperEditItems;
    NSMutableArray      *m_SuperNoEditItems;
    ItemOperMode         m_OprEditMode;
}
@property (nonatomic,retain) UITableView         *m_ListTableView;
@property (nonatomic,retain) NSMutableArray  *m_CurrentFilesArray;
@property (nonatomic,retain) NSString     *m_CurrentPath; 
@property (nonatomic,retain) NSMutableArray             *m_SuperEditItems;
@property (nonatomic,retain) NSMutableArray             *m_SuperNoEditItems;
@property (nonatomic,retain) NSMutableArray             *m_EditItems;
@property (assign) NSDictionary        *m_FileImgDic;
@property ItemOperMode                m_OprEditMode;

-(void) flashItemsToShow;
-(void) addFileByFTP:(NSString*)f_Path;
-(void) delFileByFTP:(NSString*)f_Path;
-(void) reNameFileByFTP:(NSString*)f_Path oldName:(NSString*)f_OldName;
@end
